package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * dh_order_cancel_record
 * @author 
 */
public class OrderCancelRecord implements Serializable {
    private String orderCancelRecordId;

    private String orderId;

    private Date cancelDatetime;

    private Integer upStatus;

    private Integer isauditor;

    private String memo;

    private static final long serialVersionUID = 1L;

    public String getOrderCancelRecordId() {
        return orderCancelRecordId;
    }

    public void setOrderCancelRecordId(String orderCancelRecordId) {
        this.orderCancelRecordId = orderCancelRecordId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Date getCancelDatetime() {
        return cancelDatetime;
    }

    public void setCancelDatetime(Date cancelDatetime) {
        this.cancelDatetime = cancelDatetime;
    }

    public Integer getUpStatus() {
        return upStatus;
    }

    public void setUpStatus(Integer upStatus) {
        this.upStatus = upStatus;
    }

    public Integer getIsauditor() {
        return isauditor;
    }

    public void setIsauditor(Integer isauditor) {
        this.isauditor = isauditor;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderCancelRecord other = (OrderCancelRecord) that;
        return (this.getOrderCancelRecordId() == null ? other.getOrderCancelRecordId() == null : this.getOrderCancelRecordId().equals(other.getOrderCancelRecordId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getCancelDatetime() == null ? other.getCancelDatetime() == null : this.getCancelDatetime().equals(other.getCancelDatetime()))
            && (this.getUpStatus() == null ? other.getUpStatus() == null : this.getUpStatus().equals(other.getUpStatus()))
            && (this.getIsauditor() == null ? other.getIsauditor() == null : this.getIsauditor().equals(other.getIsauditor()))
            && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderCancelRecordId() == null) ? 0 : getOrderCancelRecordId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getCancelDatetime() == null) ? 0 : getCancelDatetime().hashCode());
        result = prime * result + ((getUpStatus() == null) ? 0 : getUpStatus().hashCode());
        result = prime * result + ((getIsauditor() == null) ? 0 : getIsauditor().hashCode());
        result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderCancelRecordId=").append(orderCancelRecordId);
        sb.append(", orderId=").append(orderId);
        sb.append(", cancelDatetime=").append(cancelDatetime);
        sb.append(", upStatus=").append(upStatus);
        sb.append(", isauditor=").append(isauditor);
        sb.append(", memo=").append(memo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}